package com.ruitu.health_1.dao.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

public class GoodsInfo implements Parcelable {

    /**
     * productBrand : 华为
     * productCategoryId : 19
     * productPrice : 3788.0
     * productQuantity : 1
     * productSkuCode : 201806070026001
     * productSkuId : 90
     * productSn : 6946605
     * promotionAmount : 0
     * promotionName : 暂无促销活动
     * "sp1":"绿色","sp2":"16G","sp3":""
     */

    private String productBrand;
    private String productCategoryId;
    private String productPrice;
    private String productQuantity;
    private String productSkuCode;
    private String productSkuId;
    private String productSn;
    private String promotionAmount;
    private String promotionName;
    private String sp1;
    private String sp2;
    private String sp3;

    protected GoodsInfo(Parcel in) {
        productBrand = in.readString();
        productCategoryId = in.readString();
        productPrice = in.readString();
        productQuantity = in.readString();
        productSkuCode = in.readString();
        productSkuId = in.readString();
        productSn = in.readString();
        promotionAmount = in.readString();
        promotionName = in.readString();
        sp1 = in.readString();
        sp2 = in.readString();
        sp3 = in.readString();
    }

    public static final Creator<GoodsInfo> CREATOR = new Creator<GoodsInfo>() {
        @Override
        public GoodsInfo createFromParcel(Parcel in) {
            return new GoodsInfo(in);
        }

        @Override
        public GoodsInfo[] newArray(int size) {
            return new GoodsInfo[size];
        }
    };

    public String getProductBrand() {
        return productBrand;
    }

    public void setProductBrand(String productBrand) {
        this.productBrand = productBrand;
    }

    public String getProductCategoryId() {
        return productCategoryId;
    }

    public void setProductCategoryId(String productCategoryId) {
        this.productCategoryId = productCategoryId;
    }

    public String getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(String productPrice) {
        this.productPrice = productPrice;
    }

    public String getProductQuantity() {
        return productQuantity;
    }

    public void setProductQuantity(String productQuantity) {
        this.productQuantity = productQuantity;
    }

    public String getProductSkuCode() {
        return productSkuCode;
    }

    public void setProductSkuCode(String productSkuCode) {
        this.productSkuCode = productSkuCode;
    }

    public String getProductSkuId() {
        return productSkuId;
    }

    public void setProductSkuId(String productSkuId) {
        this.productSkuId = productSkuId;
    }

    public String getProductSn() {
        return productSn;
    }

    public void setProductSn(String productSn) {
        this.productSn = productSn;
    }

    public String getPromotionAmount() {
        return promotionAmount;
    }

    public void setPromotionAmount(String promotionAmount) {
        this.promotionAmount = promotionAmount;
    }

    public String getPromotionName() {
        return promotionName;
    }

    public void setPromotionName(String promotionName) {
        this.promotionName = promotionName;
    }

    public String getSp1() {
        return sp1;
    }

    public void setSp1(String sp1) {
        this.sp1 = sp1;
    }

    public String getSp2() {
        return sp2;
    }

    public void setSp2(String sp2) {
        this.sp2 = sp2;
    }

    public String getSp3() {
        return sp3;
    }

    public void setSp3(String sp3) {
        this.sp3 = sp3;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(productBrand);
        dest.writeString(productCategoryId);
        dest.writeString(productPrice);
        dest.writeString(productQuantity);
        dest.writeString(productSkuCode);
        dest.writeString(productSkuId);
        dest.writeString(productSn);
        dest.writeString(promotionAmount);
        dest.writeString(promotionName);
        dest.writeString(sp1);
        dest.writeString(sp2);
        dest.writeString(sp3);
    }
}
